package com.cgy.utils.tokenizer.factory;

import com.cgy.utils.tokenizer.segment.Serpentine;

/**
 * 分词器工厂
 * @author Administrator
 *
 */
public interface ISegmentFactory {
	/**
	 * 
	 * @return
	 */
	public ISegmentFactory newSegment();
	/**
	 * 
	 * @return
	 */
	public ISegmentFactory newNShortSegment();
	/**
	 * 
	 * @return
	 */
	public ISegmentFactory newDShortSegment();
	/**
	 * 
	 * @param words
	 * @return
	 */
	public Serpentine seg(String... words);
	/**
	 * 
	 * @param size
	 * @param words
	 * @return
	 */
	public Serpentine keyword(int size, String... words);
	/**
	 * 
	 * @param words
	 * @return
	 */
	public Serpentine index(String... words);
	/**
	 * N-最短路径分词
	 * @param words
	 * @return
	 */
	public Serpentine nShortSegment(String... words);
	/**
	 * 最短路分词
	 * @param words
	 * @return
	 */
	public Serpentine DijkstraSegment(String... words);
}
